//拾取钱（这个函数还是本地执行）
params ["_target", "_player"];

private _price =  (_this select 3);

if(_price == 0) exitWith{};

//时间检测
if(time < as_time_pre + 3)exitWith{};
as_time_pre = time;

if !(isNull _target) then
{
	deleteVehicle _target;
	
	private _money = player getVariable ["as_money",0];
	player setVariable ["as_money",_money + _price, true];
};

